package ooday05;
/*
   public:公开的，任何类
   protected:受保护的，本类、同包、派生类
   默认的：什么也不写，本类、同包
   private:私有的，本类-------------------java不建议
 */
public class Note {
    int a = 1;
    static int b;
    static void show(){
        //System.out.println(a);
        System.out.println(Note.b);
    }
    void say(){
        System.out.println(this.a);
        System.out.println(Note.b);
    }











    /*static {
        System.out.println("静态块");
    }
    Note(){
        System.out.println("构造方法");
    }*/

   /* int a;
    static int b;
    Note(){
        a++;
        b++;
    }
    void show(){
        //System.out.println("a="+a+",b="+b);
        System.out.println(a+","+b);
    }*/
}
